const path = require('path')
function resolve (dir) {
  return path.resolve(__dirname, dir)
}
module.exports = {
  transpileDependencies: [
    // 'vue-echarts',
    // 'resize-detector'
  ],

  devServer: {
    disableHostCheck: true
  },

  chainWebpack: config => {
    config.resolve.alias
      .set("api", resolve('src/api')) // key,value自行定义，比如.set('@@', resolve('src/components'))
  },

  pluginOptions: {
    apollo: {
      enableMocks: true,
      enableEngine: true
    }
  }
}
